//
//  UIImageView+Common.m
//  Dresshere
//
//  Created by 张朋 on 2017/12/12.
//  Copyright © 2017年 张朋. All rights reserved.
//

#import "UIImageView+Common.h"

@implementation UIImageView(Common)

- (void)dh_setImageURLString:(NSString *)imageURLString{
    NSString *tempUrl = [imageURLString stringByAppendingString:@"!middle"];
    tempUrl = [tempUrl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    [self sd_setImageWithURL:[NSURL URLWithString:tempUrl] placeholderImage:[UIImage imageNamed:@"img_default.jpg"]];
    self.contentMode = UIViewContentModeScaleAspectFill;
    self.clipsToBounds = YES;
}


@end
